import axios from "../../utils/axios";
/**
 *  2.0版本
 */
//  entityBusiness/merchantsCommodityToExamine
export function getList(query) {
    return axios({
        url: "/liveGoods/getList",
        method: "get",
        params: query
    });
}
//  entityBusiness/merchantsCommodityToExamine
export function merchantsAgentList(query) {
    return axios({
        url: "/liveGoods/getAuthAdminPage",
        method: "post",
        params: query
    });
}
//分类
export function getCategory() {
    return axios({
        url: "/agentProductGenerate/getCategoryCertification",
        method: "post",
    });
}
export function addLiveGoods(data) {
    return axios({
        url: "/liveGoods/addLiveGoods",
        method: "post",
        data: data
    });
}

export function delLiveGoods(query) {
    return axios({
        url: "/liveGoods/delLiveGoods",
        method: "post",
        data: query
    });
}

//  entityBusiness/merchantsCommodityToExamine
export function getMerchantsGoods(query) {
    return axios({
        url: "/liveGoods/getGoodsList",
        method: "get",
        params: query
    });
}
// /repertory/getRepertoryList 获取品牌商品库表列表
export function getRepertoryList(query) {
    return axios({
        url: "/repertory/getRepertoryList",
        method: "get",
        params: query
    });
}
// /repertory/deleteRepertory 商家端-批量删除
export function deleteRepertory(query) {
    return axios({
        url: "/repertory/deleteRepertory",
        method: "post",
        data: query
    });
}
// /repertory/addRepertory 商家端-批量添加
export function addRepertory(query) {
    return axios({
        url: "/busBrandCommodityToExamine/addBusBrandCommodityToExamine",
        method: "post",
        data: query
    });
}

//agentProductGenerate/brandCommodityList 隶属品牌商品列表
export function brandCommodityList(query) {
    return axios({
        url: "/agentProductGenerate/brandCommodityList",
        method: "get",
        params: query
    });
}

// 品牌商品列表
export function brandAgentCommodityList(query) {
    return axios({
        url: "goldendays-goods/busCommodityMain/brandAgentCommodity",
        method: "get",
        params: query
    });
}
// 品牌商品列表 更新
export function updateBrandCommodity(data) {
    return axios({
        url: "goldendays-goods/busCommodityMain/updateBrandCommodity", // agentProductGenerate/agentProductAdd
        method: "post",
        data: data
    });
}

// /agentProductGenerate/platformCommodityList 平台商品
export function platformCommodityList(query) {
    return axios({
        url: "/agentProductGenerate/platformCommodityList",
        method: "get",
        params: query
    });
}

//获得仓库
export function getBusWarehouseList(query) {
    return axios({
        url: "/goldendays-goods/agentProductGenerate/getBusWarehouseList",
        method: "get",
        params: query
    });
}

